package com.tanavlog.common.exception;

import com.tanavlog.common.enums.ResultCodeEnum;
import lombok.Getter;

/**
 * @author 枫花恋
 * @description 自定义业务异常
 * @since 2025/7/24 23:34
 */
@Getter
public class BizException extends RuntimeException {
    private ResultCodeEnum resultCodeEnum;
    public BizException(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getMessage());
        this.resultCodeEnum = resultCodeEnum;
    }

}
